<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keyword" content="">
    <link rel="shortcut icon" href="img/favicon.png">
    <title>APQP微信企业号</title>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/bootstrap-reset.css">
    <!--external css-->
    <link rel="stylesheet" href="assets/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="assets/toastr-master/toastr.css">
    <!--right slidebar-->
    <link rel="stylesheet" href="css/slidebars.css">
    <!-- Custom styles for this template -->
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/style-responsive.css">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <script src="assets/toastr-master/toastr.js"></script>
    <![endif]-->
    <style type="text/css">
    .icon-del {
        position: absolute;
        top: 0;
        right: -5px;
        font-size: 20px;
        line-height: 34px;
        color: #999;
        display: inline-block;
        font-weight: 700;
    }
    </style>
</head>

<body>
    <div id="container">
        <!--header start-->
        <header class="header blue-bg">
            <div class="sidebar-toggle-box">
                <i class="fa fa-bars"></i>
            </div>
            <!--logo start-->
            <a href="index.html" class="logo"><span>APQP</span>微信企业号</a>
            <div id="top_menu" class="nav notify-row">
                <a href="index.html" class="btn btn-shadow btn-primary"><i class="fa fa-trophy"></i> APQP</a>
                <a href="enterprise.html" class="btn btn-shadow btn-default"><i class="fa fa-desktop"></i> 企业号</a>
            </div>
            <div class="top-nav">
                <ul class="nav pull-right top-menu">
                    <li class="dropdown">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <img alt="" src="img/avatar1_small.jpg">
                            <span class="username">管理员</span>
                            <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu extended logout">
                            <div class="log-arrow-up"></div>
                            <li><a href="#"><i class=" fa fa-suitcase"></i>简介</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i> 设置</a></li>
                            <li><a href="#"><i class="fa fa-bell-o"></i> 通知</a></li>
                            <li><a href="login.html"><i class="fa fa-key"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </header>
        <!--header end-->
        <!--sidebar start-->
        <aside>
            <div id="sidebar" class="nav-collapse">
                <!-- sidebar menu start-->
                <ul class="sidebar-menu" id="nav-accordion">
                    <li>
                        <a href="index.html">
                            <i class="fa fa-dashboard"></i>
                            <span>工作台</span>
                        </a>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="fa fa-laptop"></i>
                            <span>菜单管理</span>
                        </a>
                        <ul class="sub">
                            <li><a href="menu.custom.html">自定义菜单</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="fa fa-book"></i>
                            <span>素材管理</span>
                        </a>
                        <ul class="sub">
                            <li><a href="resource.html">素材列表</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="fa fa-cogs"></i>
                            <span>用户管理</span>
                        </a>
                        <ul class="sub">
                            <li><a href="user.list.html">APQP用户列表</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;">
                            <i class="fa fa-tasks"></i>
                            <span>消息管理</span>
                        </a>
                        <ul class="sub">
                            <li><a href="msg.send.html">发消息</a></li>
                            <li><a href="msg.history.html">历史消息</a></li>
                        </ul>
                    </li>
                    <li class="sub-menu">
                        <a href="javascript:;" class="active">
                            <i class="fa fa-th"></i>
                            <span>回复管理</span>
                        </a>
                        <ul class="sub">
                            <li><a href="reply.welcomes.html">关注欢迎语</a></li>
                            <li><a href="reply.keyword.html">关键字管理</a></li>
                            <li><a href="reply.unknown.html">未识别回复语</a></li>
                        </ul>
                    </li>
                </ul>
                <!-- sidebar menu end-->
            </div>
        </aside>
        <!--sidebar end-->
        <!--main content start-->
        <section id="main-content">
            <section class="wrapper site-min-height">
                <section class="panel">
                    <header class="panel-heading">
                        APQP-自动回复
                    </header>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-3">
                                <section class="panel">
                                    <header class="panel-heading">
                                        关键字自动回复
                                        <a href="" class="pull-right">新建</a>
                                    </header>
                                    <div class="panel-body">
                                        <ul class="nav prod-cat">
                                            <li><a href="">测试</a></li>
                                            <li><a href="">关键字1</a></li>
                                            <li><a href="">关键字2</a></li>
                                            <li><a href="">关键字3</a></li>
                                            <li><a href="">关键字4</a></li>
                                        </ul>
                                    </div>
                                </section>
                            </div>
                            <div class="col-md-7">
                                <form action="">
                                    <div class="form-group">
                                        <label for="">规则名</label>
                                        <input type="text" class="form-control">
                                    </div>
                                    <div class="form-group" id="keyword-group">
                                        <label for="">关键词</label>
                                        <span class="text-muted">（最多可支持10个）</span>
                                        <div class="form-group row">
                                            <div class="col-xs-4">
                                                <select name="" id="" class="form-control">
                                                    <option value="">包含</option>
                                                    <option value="">完全匹配</option>
                                                </select>
                                            </div>
                                            <div class="col-xs-8 post-info">
                                                <input type="text" class="form-control" placeholder="">
                                                <a href="" class="icon-del">&times;</a>
                                            </div>
                                        </div>
                                        <div class="form-group row">
                                            <div class="col-xs-4">
                                                <select name="" id="" class="form-control">
                                                    <option value="">包含</option>
                                                    <option value="" selected="">完全匹配</option>
                                                </select>
                                            </div>
                                            <div class="col-xs-8">
                                                <input type="text" class="form-control" placeholder="">
                                                <a href="" class="icon-del">&times;</a>
                                            </div>
                                        </div>
                                        <div id="add-group" class="form-group" style="margin-top: -5px;"><a href="javascript:addGroup()">添加</a></div>
                                    </div>
                                    <div class="form-group">
                                        <label>回复内容</label>
                                        <p><a href="reply.welcomes.edit.html">添加回复内容</a></p>
                                        <textarea name="" id="" cols="30" rows="10" class="form-control"></textarea>
                                    </div>
                                    <button class="btn btn-block btn-info">保 存</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </section>
            </section>
        </section>
        <!--main content end-->
        <!--footer start-->
        <footer class="site-footer">
            <div class="text-center">
                Copyright © 2016-2017 宙能信息. All rights reserved.
                <a href="#" class="go-top">
                    <i class="fa fa-angle-up"></i>
                </a>
            </div>
        </footer>
        <!--footer end-->
    </div>
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.dcjqaccordion.2.7.js" class="include" type="text/javascript"></script>
    <script src="js/jquery.scrollTo.min.js"></script>
    <script src="js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="js/respond.min.js"></script>
    <script src="assets/toastr-master/toastr.js"></script>
    <!--right slidebar-->
    <script src="js/slidebars.min.js"></script>
    <!--common script for all pages-->
    <script src="js/common-scripts.js"></script>
    <!-- group模板 -->
    <script type="text/template" id="group-tpl">
        <div class="form-group row">
            <div class="col-xs-4">
                <select name="" id="" class="form-control">
                    <option value="">包含</option>
                    <option value="">完全匹配</option>
                </select>
            </div>
            <div class="col-xs-8">
                <input type="text" class="form-control" placeholder="">
                <a href="" class="icon-del">&times;</a>
            </div>
        </div>
    </script>
    <script>
    function addGroup() {
        if ($('#keyword-group .form-group.row').length < 10) {
            $('#add-group').before($('#group-tpl').html());
        } else {
            alert('最多支持10个关键词');
        }
    }
    $(function() {
        $('#keyword-group').on('click', '.icon-del', function(e) {
            e.preventDefault();
            $(this).parent().parent().remove();
        });
    })
    </script>
</body>

</html>
